package com.cnt.service;

import com.cnt.entity.Donations;
import com.cnt.vo.AchievementVo;
import com.cnt.vo.ResultVo;
import org.springframework.web.multipart.MultipartFile;

import java.io.InputStream;
import java.util.List;

public interface DonationsService {

    //修改募捐申请的基本信息
    public ResultVo<Donations> updateDonation(Donations donations);

    //删除募捐申请
    public ResultVo<String> deleteDonationById(Integer id);

    //提交募捐申请
    public ResultVo<Donations> submitDonation(Donations donations);

    //撤回募捐申请
    public ResultVo<Donations> revokeDonation(int donationId);

    public ResultVo<List<Donations>> queryDonations(Integer minAge,Integer oleAge,String name);

    public ResultVo<List<Donations>> queryDonationByPersonId(Integer personId);

    public ResultVo<Donations> insert(Donations donations);

    public ResultVo<Donations> getByDonationId(Integer donationsId);

    public ResultVo<String> uploadDonationImage(Integer donationId, MultipartFile file);

    public ResultVo<List<String>> getTenDonation();

    public ResultVo<AchievementVo> achievement();

    ResultVo<Void> changeStatus(Integer donationsId);

    ResultVo<Void> declareEnd(Integer donationsId);

    InputStream download(Integer donationsId);
    ResultVo<List<Donations>> List(Double min, Double max, String name);
}
